package
{
	import net.flashpunk.Entity;
	import net.flashpunk.FP;
	
	/**
	 * ...
	 * @author Edward Russell II
	 */
	public class Bomb extends Entity
	{
		public function Bomb()
		{
			
		}
		
		public function explode():void
		{
			
			// First, we will create an empty array.
			var enemyList:Array = [];
			
			// Then, we populate the array with all existing Enemy objects!
			FP.world.getType("enemy", enemyList);
			
			// Finally, we can loop through the array and call each Enemy's die() function.
			for each (var e:Enemy in enemyList) FP.world.remove(e);
			
		}
	}
}